/*
* Description: 应用使用时长model类
*/
#ifndef APP_USING_DATA_MODEL_H
#define APP_USING_DATA_MODEL_H
#include <Windows.h>
#include <string>
#include "log.h"

namespace DFX {

constexpr const int APP_EVENT_TYPE_UNKNOWN = 0x0;
constexpr const int APP_EVENT_TYPE_START = 0x1;
constexpr const int APP_EVENT_TYPE_END = 0x2;

const std::string SESSION_NAME = "VMAGENT_PS_TRACE";

// PsProvGuid: {22FB2CD6-0E7B-422B-A0C7-2FAD1FD0E716}
const GUID PsProvGuid = { 0x22FB2CD6, 0x0E7B, 0x422B, { 0xA0, 0xC7, 0x2F, 0xAD, 0x1F, 0xD0, 0xE7, 0x16 } };

class AppEventData {
public:
    uint64_t id{ 0 };
    std::string name;
    std::string filePath;
    DWORD pid{ 0 };
    int64_t time{ 0 };
    int eventType{ APP_EVENT_TYPE_UNKNOWN };
    bool isUploaded{ false };
};

}  // namespace DFX

#endif